package com.laowang.project.system.service.impl;

import java.util.List;
                                        import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhWelfareRulesMapper;
import com.laowang.project.system.domain.MyCyhWelfareRules;
import com.laowang.project.system.service.MyCyhWelfareRulesService;

/**
 * 福利规则Service业务层处理
 *
 * @author laowang
 * @date 2023-10-31
 */
@Service
public class MyCyhWelfareRulesServiceImpl implements MyCyhWelfareRulesService {
    @Autowired
    private MyCyhWelfareRulesMapper myCyhWelfareRulesMapper;

    /**
     * 查询福利规则
     *
     * @param id 福利规则ID
     * @return 福利规则
     */
    @Override
    public MyCyhWelfareRules selectMyCyhWelfareRulesById(Integer id) {
        return myCyhWelfareRulesMapper.selectMyCyhWelfareRulesById(id);
    }

    /**
     * 查询福利规则列表
     *
     * @param myCyhWelfareRules 福利规则
     * @return 福利规则
     */
    @Override
    public List<MyCyhWelfareRules> selectMyCyhWelfareRulesList(MyCyhWelfareRules myCyhWelfareRules) {
        return myCyhWelfareRulesMapper.selectMyCyhWelfareRulesList(myCyhWelfareRules);
    }

    /**
     * 新增福利规则
     *
     * @param myCyhWelfareRules 福利规则
     * @return 结果
     */
    @Override
    public int insertMyCyhWelfareRules(MyCyhWelfareRules myCyhWelfareRules) {
                                                                            return myCyhWelfareRulesMapper.insertMyCyhWelfareRules(myCyhWelfareRules);
    }

    /**
     * 修改福利规则
     *
     * @param myCyhWelfareRules 福利规则
     * @return 结果
     */
    @Override
    public int updateMyCyhWelfareRules(MyCyhWelfareRules myCyhWelfareRules) {
                                                                            return myCyhWelfareRulesMapper.updateMyCyhWelfareRules(myCyhWelfareRules);
    }

    /**
     * 批量删除福利规则
     *
     * @param ids 需要删除的福利规则ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhWelfareRulesByIds(Integer[] ids) {
        return myCyhWelfareRulesMapper.deleteMyCyhWelfareRulesByIds(ids);
    }

    /**
     * 删除福利规则信息
     *
     * @param id 福利规则ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhWelfareRulesById(Integer id) {
        return myCyhWelfareRulesMapper.deleteMyCyhWelfareRulesById(id);
    }
}
